// Copyright (C) 2020 Focus Media Holding Ltd. All Rights Reserved.

package cn.pacerx.running.db.typehandler;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * TypeHandler for List of String
 */
@SuppressWarnings("unused")
public class StringListTypeHandler extends StringCollectionTypeHandler<List<String>> {
    public StringListTypeHandler() {

    }

    @Override
    protected List<String> toCollection(String[] s) {
        return Stream.of(s).collect(Collectors.toList());
    }
}
